<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DomainModel.Entities.Event>>" %>



<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
 <%
 //this page is used for event search and event tagging 
 %>
    Event <%= ((ResultsView)ViewData["resultsView"]).PageTitle %> Results
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <h2>
        Event <%= ((ResultsView)ViewData["resultsView"]).PageTitle %> Results</h2>
    <div class="zone_events_search">
        <div class="float_centre">
            <h3>
                <% = Model.Count() %>
                event result(s) for "<%= ((ResultsView)ViewData["resultsView"]).QueryString %>"
            </h3>
        </div>
      
     <%Html.RenderPartial("EventList", Model); %> 
    </div>
    <br class="clear" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

<%
    // TODO: only apply it to search page
    if (ViewContext.RouteData.Values["action"].ToString() == "event" && ViewContext.RouteData.Values["controller"].ToString() == "search")
    {
        %>
          <script src="../../../../Scripts/jquery/jquery.highlight-3.yui.js" type="text/javascript"></script>
    <script type="text/javascript">
        //<![CDATA[
        $(document).ready(function() {
            $('.zone_events_search').highlight(' <%= Request["q"] %> ');
        });

        //]]>
    
    </script>
   <% }
    
   
    %>
   

</asp:Content>
